<#import "/macro.ftl" as m>
<@m.page_header title='后台' />
<div id="page-content-wrapper">

<div id="page-title">

    <h3>
        <#if parameter>修改银行信息<#else>添加银行信息</#if>
    </h3>
 
</div>
<div class="pad10A">
<#if bankInfo> 
<form id="demo-form1" action="/setting/bank/update" class="col-md-12" method="POST">
<input type="hidden" name="id" value="${bankInfo.id}"/>
<#else>
<form id="demo-form1" action="/setting/bank/add" class="col-md-12" method="POST">
</#if>

	<#if bankInfo>
	</#if>
   <div class="form-row">
        <div class="form-label col-md-2">
            <label for="">
                银行名称:
            </label>
        </div>
        <div class="form-input col-md-8">
            <input type="text" id="bankName" name="bankName" disabled class="parsley-validated" value="${bankInfo.bankName}">
        </div>
    </div>
   <div class="form-row">
        <div class="form-label col-md-2">
            <label for="">
                银行代码:
            </label>
        </div>
        <div class="form-input col-md-8">
            <input type="text" id="bankCode" name="bankCode" disabled class="parsley-validated" value="${bankInfo.bankCode}">
        </div>
    </div>
    
    <div class="form-row">
        <div class="form-label col-md-2">
            <label for="">
                支付网关:
                <span class="required">*</span>
            </label>
        </div>
        <div class="form-input col-md-2">
        	<select id="payGate" name="payGate">
	                    <option value="LLPay" <#if bankInfo.payGate == 'LLPay'>selected</#if>>连连支付</option>
	                    <option value="UMPay" <#if bankInfo.payGate == 'UMPay'>selected</#if>>联动优势</option>
	            </select>
        </div>
    </div>
    
    <div class="form-row">
        <div class="form-label col-md-2">
            <label for="">
                支付限额:
                <span class="required">*</span>
            </label>
        </div>
        <div class="form-input col-md-8">
            <input type="text" id="maxPayInfo" name="maxPayInfo" data-trigger="change" data-required="true" class="parsley-validated" value="${bankInfo.maxPayInfo}">
        </div>
    </div>
    <div class="divider"></div>
    <div class="form-row">
        <input type="hidden" name="superhidden" id="superhidden">
       <div class="form-input col-md-10 col-md-offset-2">
                    <a href="javascript:;" class="btn medium primary-bg radius-all-4 col-md-2" id="demo-form-2-valid">
                        
                                                                         提交
                        
                 </a>
        </div>
    </div>   

</form>
</div>
</div>



<script type="text/javascript">
$(function(){
		$("#demo-form-2-valid").click(function(){
			$('#demo-form1').parsley('validate');
	    	$('#demo-form1').trigger('submit');
		});
	});

</script>